Complete Guide to Test Automation: Techniques, Practices, and Patterns for Building and Maintaining Effective Software Projects by Arnon Axelrod
Author:Arnon Axelrod [Axelrod, Arnon]
Language: eng
Format: epub
Tags: computers, Languages, General, Programming
ISBN: 9781484238325
Google: FRVwDwAAQBAJ
Publisher: Apress
Published: 2018-09-22T23:51:17.593747+00:00
2.Add relevant diagnostic information to the test result.
While the tendency of most people is for the first option, I generally prefer to try the second option first, and only if it doesnât help fall back to debugging. The reason I prefer the second option is that diagnostic information that I add to the test can serve me to investigate future failures as well. In particular, when a test fails during a CI or nightly build and cannot be reproduced on the environment of the automation developer, then debugging wonât help, while diagnostic information would. See the next chapter for more information about investigating failures.
So, the most basic diagnostic information that can help us identify this problem is a screenshot of the page at the moment of the failure. On the one hand, if we see the button in the screenshot, then it means that thereâs a problem in the way we try to find it. If, on the other hand, we wonât see the button, then weâll have to continue investigating further, but the screenshot will probably provide us with more hints regarding the problem. Listings 12-14 and 12-15 show the code we add to SantiyTests.cs and MVCForumClient.cs respectively in order to take the screenshot. Note that most of the code we add to SanityTests.cs is specific to MSTest, but you can do similar things in other unit testing frameworks too.public TestContext TestContext { get; set; }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Exploring Deepfakes by Bryan Lyon and Matt Tora(7830)
Robo-Advisor with Python by Aki Ranin(7733)
Offensive Shellcode from Scratch by Rishalin Pillay(6162)
Microsoft 365 and SharePoint Online Cookbook by Gaurav Mahajan Sudeep Ghatak Nate Chamberlain Scott Brewster(5140)
Ego Is the Enemy by Ryan Holiday(4982)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4450)
Python for ArcGIS Pro by Silas Toms Bill Parker(4232)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(3950)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3706)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(3292)
Liar's Poker by Michael Lewis(3242)
Speed Up Your Python with Rust by Maxwell Flitton(3238)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(3199)
Extreme DAX by Michiel Rozema & Henk Vlootman(3180)
Agile Security Operations by Hinne Hettema(3129)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(3119)
Essential Cryptography for JavaScript Developers by Alessandro Segala(3087)
Cryptography Algorithms by Massimo Bertaccini(3006)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2991)
